<div class="widget-container scrollable list task-widget padded">
    <!--<div class="heading"> <i class="icon-list"></i>审批事项
        <span class="pull-right"></span> 
    </div>-->
    <div class="widget-content">
      <ul>
        <?php $mdone=0;$mundone=0;$mrefuse=0;$mdoning=0;foreach($list as $v){ ?>
            <li onClick="_openWindow('{:U('Mission/read', array('id' => $v['id']))}', 500, '{$v.title}(审批)', '确认', null, '')">
              <label>
                <?= $v['title'] ?>
                <eq name="v['state']" value="0"> <span class="label pull-right label-danger">驳回</span> </eq>
                <eq name="v['state']" value="1"> <span class="label pull-right label-warning">未审批</span> </eq>
                <eq name="v['state']" value="2"> <span class="label pull-right label-info">审批中</span> </eq>
                <eq name="v['state']" value="3"> <span class="label pull-right label-success">通过</span> </eq>
                <span class="text-muted pull-right">申请人：
                {: empty($v['proposername'])?'无':$v['proposername'] }
                <?php switch($v['state']){
                        case 0:
                            $mrefuse+=1;
                        break;
                        case 1:
                            $mundone+=1;
                        break;
                        case 2:
                            $mdoning+=1;
                        break;
                        case 3:
                            $mdone+=1;
                        break;
                    } ?>
                &nbsp;&nbsp;</span> 
              </label>
            </li>
        <?php } ?>
      </ul>
    </div>
</div>